package com.alibaba.cloud.application.mapping;

import org.mapstruct.CollectionMappingStrategy;
import org.mapstruct.Mapper;
import org.mapstruct.NullValueCheckStrategy;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

import com.alibaba.cloud.domain.dto.UserInfoDto;
import com.alibaba.cloud.domain.vo.UserInfoVo;
import com.alibaba.cloud.domain.UserInfo;

/***
 * @description: UserInfoInfoMapping
 * @author: zhb1316783262@163.com
 * @date: 2022/6/12 20:58
 */
@Mapper(collectionMappingStrategy = CollectionMappingStrategy.ADDER_PREFERRED,
nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS,
unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface UserInfoMapping extends CommonProtoMapping {
    UserInfoMapping INSTANCE = Mappers.getMapper(UserInfoMapping.class);
    UserInfo dtoToPO(UserInfoDto userInfoDto);

    UserInfoVo poToVO(UserInfo userInfo);
}
